package com.hailian.fintech.hlfinanceserver.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author wk
 * @since 2020-05-23
 */
@Data
@Accessors(chain = true)
@TableName("hl_tixian")
public class Tixian extends Model<Tixian> {

    private static final long serialVersionUID = 1L;

    /**
     * 体现表id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    /**
     * 用户表.id
     */
    private Integer userId;
    /**
     * 体现金额
     */
    private BigDecimal sum;
    /**
     * 审核日期
     */
    @JsonFormat(shape = JsonFormat.Shape.ANY,pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date time;
    /**
     * 提现申请日期
     */
    @JsonFormat(shape = JsonFormat.Shape.ANY,pattern = "yyyy-MM-dd",timezone = "GMT+8")
    private Date cashTime;

    private String state;//状态
    @TableField(exist = false)
    private String departName;

    private Integer accountId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
